<template>
  <!-- 个人通讯录 -->
  <div class="view-container">
    <div class="neiBian">
      <span>
        <el-button plain >新建</el-button>
        <el-button plain >导出</el-button>
        <el-button plain >导入</el-button>
        <el-button plain >移到分组</el-button>
        <el-button plain >发送邮件</el-button>
        <el-button plain >发送短信</el-button>
        <el-button plain >搜索</el-button>
        <el-button  plain @click="goGroupManager">分组管理</el-button>
      </span>
    </div>
    <div>
      <el-table
        ref="multipleTable"
        :data="tableData"
        tooltip-effect="dark"
        style="width: 100%"
        @selection-change="handleSelectionChange"
      >
        <el-table-column type="selection" width="120"></el-table-column>
        <el-table-column label="头像" width="220">
          <template></template>
        </el-table-column>
        <el-table-column label="姓名" width="220"></el-table-column>
        <el-table-column label="手机号码" width="220"></el-table-column>
        <el-table-column label="分组" width="220"></el-table-column>
        <el-table-column label="电子邮件" width="220"></el-table-column>
        <el-table-column label="操作" show-overflow-tooltip></el-table-column>
      </el-table>
    </div>
    <div class="block">
      <span class="demonstration"></span>
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page.sync="currentPage2"
        :page-sizes="[5, 10, 15, 20]"
        :page-size="100"
        layout="sizes, prev, pager, next"
        :total="100"
      ></el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
      tableData: [],
      currentPage2: 5,

    };
  },
  created() {},
  methods: {
    goGroupManager(){
      this.$router.push('/personal-office/addresss-group-manager')
    },
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
    handleSelectionChange(val) {
      this.multipleSelection = val;
    }
  }
};
</script>

<style scoped lang="scss">
.neiBian > span {
  display: inline-block;
  width: 100%;
  border: 1px solid rgb(214, 214, 214);
  padding: 10px;
  padding-bottom: 15px;
  padding-top: 5px;

}

.block {
  display: flex;
  justify-content: center;
}
</style>
